package com.imti.mall.feign.clients;

import com.imti.mall.common.Api.CommonResult;
import com.imti.mall.model.admin.query.UmsAdminLoginParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "imti-mall-admin", contextId = "admin")
public interface AdminFeignClient {

    /**
     * 管理员登录
     *
     * @param umsAdminLoginParam
     * @return
     */
    @PostMapping("/api/v1/admin/login")
    CommonResult adminLogin(@RequestBody UmsAdminLoginParam umsAdminLoginParam);
}
